<template>
<price-comparison-apply ref="applyRef"></price-comparison-apply>
</template>

<script setup lang="ts">
import PriceComparisonApply
  from "@/views/project/projectDetails/publicBasicForm/purchaseConstructionContract/price/index.vue";

const applyRef = ref();

function handleBusinessFn() {
  return new Promise((resolve, reject) => {
    if (applyRef.value) {
      applyRef.value.getSupplier().then((res: Record<string, any>) => {
        resolve(res);
      }).catch(() => {
        reject();
      })
    } else {
      reject();
    }
  })
}

defineExpose({
  handleBusinessFn,
})
</script>

<style scoped lang="scss">

</style>
